<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>加载中.....</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<!--<link href="css/mui.min.css" rel="stylesheet" />-->
	</head>

	<body>
		<script src="js/jquery-1.11.0.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>
		<!--<script src="js/mui.min.js"></script>-->
		<script type="text/javascript">
			function GetQueryString(key) {
				// key为url变量名称
				var urlGets = location.search.substr(1);
				if(urlGets.length > 0) {
					start = urlGets.indexOf(key + '=');
					if(start != -1) {
						start = start + key.length + 1;
						end = urlGets.indexOf('&', start)
						if(end == -1) {
							end = urlGets.length
						}
						return decodeURIComponent(urlGets.substring(start, end))
					}
				}
				return '';
			}
			var id;
			if(GetQueryString("id")) {
				id = GetQueryString("id");
			} else {
				id = 66;
			}
			//var address="http://192.168.1.11:80";
			var address = "http://dkx.yytaomeng.com";

			//			document.write(returnCitySN["cip"]+','+returnCitySN["cname"]) ;
			var bb = returnCitySN["cip"];
			console.log(bb);
			console.log(navigator.userAgent);
			var cc = navigator.userAgent
			//			document.write("</br>"+cc) ;
			//			document.write("</br>"+id) ;
			function aa() {
				var data = {};
				data["id"] = id;
				data["ip"] = bb;
				data["name"] = cc;
				$.ajax({
					type: 'get',
					url: address + "/api/loan/strategy/insertip",
					data: data,
					contentType: "application/json; charset=utf-8",
					dataType: 'jsonp',
					jsonp: "callback",
					jsonpCallback: "successCallback",
					success: function(data) {
						//						alert("成功");
						console.log(JSON.stringify(data));
						window.location.href = data.url;
					},
					error: function(error) {
						alert("哎呀,网络开小差了哦");
					}
				})

			}
			aa();
		</script>

	</body>

</html>